package com.itany.nmms.service;

import com.github.pagehelper.PageInfo;
import com.itany.nmms.entity.ProductType;
import com.itany.nmms.exception.ProductTypeExistException;
import com.itany.nmms.exception.RequestParameterErrorException;

/**
 * @author 石小俊
 */
public interface ProductTypeService {

    /**
     *
     * @param name
     * @throws RequestParameterErrorException
     * @throws ProductTypeExistException
     */
    void addType(String name) throws RequestParameterErrorException, ProductTypeExistException;

    /**
     *
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<ProductType> findPage(String pageNo,String pageSize);

}
